﻿using System;

namespace ConditionalStatement
{
    class ABiggerB
    {
        static void Main(string[] args)
        {
            //Write an if statement that examines two integer variables and exchanges their values if the first one is greater than the second one.
            Console.WriteLine("First:");
            int firstNumber = Int32.Parse(Console.ReadLine());
            Console.WriteLine("Second:");
            int secondNumber = Int32.Parse(Console.ReadLine());
            if (firstNumber > secondNumber)
            {
                secondNumber = firstNumber; //exchange
                Console.WriteLine("Bigger is: {0}",secondNumber);
            }
            else if(secondNumber > firstNumber)
            {
                firstNumber = secondNumber; //exchange
                Console.WriteLine("Bigger is: {0}",firstNumber);
            }
            else if (secondNumber == firstNumber)
            {
                Console.WriteLine("They are equal.");
            }
            else
            {
                Console.WriteLine("Something goes wrong;)");
            }
        }
    }
}
